Skip to content

fix: fix annotated typing#1692

Merged
tleonhardt merged 4 commits into
mainfrom
feat/annotated-paramspec-typing
Jun 11, 2026
Merged

fix: fix annotated typing#1692
tleonhardt merged 4 commits into
mainfrom
feat/annotated-paramspec-typing

Conversation

@KelvinChung2000

Copy link
Copy Markdown
Contributor

close #1684

@KelvinChung2000 KelvinChung2000 changed the title chore: fix annotated typing fix: fix annotated typing Jun 10, 2026
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.59%. Comparing base (99173cc) to head (97bb805).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1692   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files          23       23           
  Lines        5678     5681    +3     
=======================================
+ Hits         5655     5658    +3     
  Misses         23       23           
Flag Coverage Δ
unittests 99.59% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Comment thread cmd2/annotated.py Outdated
Comment thread cmd2/annotated.py
@neoniobium

Copy link
Copy Markdown

I check out this PR. It works for me. Thank you very much!

Address review feedback on PR #1692:
- Remove forward-reference quotes from _WithAnnotatedDecorator.__call__
  since Callable, _CommandParams, and _CommandReturn are already in scope
- Add a Bug Fixes changelog entry for the with_annotated type-hint fix
@tleonhardt tleonhardt merged commit abf27fe into main Jun 11, 2026
29 checks passed
@tleonhardt tleonhardt deleted the feat/annotated-paramspec-typing branch June 11, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mypy complains about method decorated with with_annotated decorator

3 participants